package com.woniuxy.micromedicalserver.doctormanage.service.impl;

import com.woniuxy.micromedicalserver.bean.DoctorTitleBean;
import com.woniuxy.micromedicalserver.doctormanage.mapper.DoctorTitleMapper;
import com.woniuxy.micromedicalserver.doctormanage.service.IDoctorTitleService;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;
import java.util.List;

@Service
@Transactional(readOnly = true)
public class DoctorTitleServiceImpl implements IDoctorTitleService {

    @Resource
    private DoctorTitleMapper doctorTitleMapperImpl;

    @Override
    public DoctorTitleBean selectByID(Byte ID) {
        return doctorTitleMapperImpl.selectByID(ID);
    }

    @Override
    public List<DoctorTitleBean> selectAll() {
        return doctorTitleMapperImpl.selectAll();
    }
}
